import java.util.Scanner;

public class Code {
/*    public static int ret(int n){
        int i = 0;
        int sum = 0;
        while (i<32){
            if(((n>>i) & 1) ==1){
                sum +=1;
            }
            i++;
        }
        return sum;
    }
    public static void main(String[] args) {
        int n = 0;
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()){
            n = scanner.nextInt();
            int count = ret(n);
            System.out.println(count);
        }
        scanner.close();
    }*/
        //辗转相除法
/*        int a = 56;
        int b = 12;
        while (a%b!=0)
        {
            int temp = a % b;
            a = b;
            b = temp;
            if(a%b==0){
                System.out.println("最大公约数为："+temp);
            }
        }
    }*/
/*    public static void main(String[] args) {
        //输出乘法口诀表
        int i=1;
        int j=1;
        for (i = 1; i < 10; i++) {
            for (j = 1; j <= i; j++) {
                System.out.printf("%d * %d = %d ",i,j,i*j);
            }
            System.out.println();
        }
    }*/

    //输入一个数
/*    public static void main(String[] args) {
        for (int i = 1000; i < 2000; i++) {
            if((i % 4==0 && i % 100 != 0) || (i % 400 ==0)){
                System.out.println(i+"是闰年");
            }
        }
    }*/
}
